/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cw.biz;

import cw.server.ServerConfig;
import cw.server.ServerInterface;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author VinhTC
 */
public class LevelBiz {


    /**
     * this method use to get all Subject
     * @return- List <Subject>
     */
    public List<cw.entity.Level> getAllLevel() throws RemoteException  {
        try {
            List<cw.entity.Level> lstLevel = new ArrayList<cw.entity.Level>();
            ServerConfig sc = new ServerConfig();
            ServerInterface stub = sc.Setup();
            lstLevel = stub.getAllLevel();
            return lstLevel;

        } catch (Exception e) {
            return null;
        }
    }
}
